import request from '@/utils/request.js'

//关注用户
export const FollowService = (followingId) => {
    return request.post(`/follow/follow/${followingId}`)
}

//取消关注用户
export const UnfollowService = (followingId) => {
    return request.post(`/follow/unfollow/${followingId}`)
}

//获取用户关注列表
export const getFollowingListService = (userId) => {
    return request.get(`/follow/following/${userId}`)
}

//获取用户粉丝列表
export const getFollowerListService = (userId) => {
    return request.get(`/follow/followers/${userId}`)
}